package com.fourgirls.xiaoxiang.dao.ShoppingCartDao;


import com.fourgirls.xiaoxiang.pojo.Address.AddressVo;
import com.fourgirls.xiaoxiang.pojo.Shopping.ShoppingVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.ShoppingCartIdVo;
import com.fourgirls.xiaoxiang.pojo.ShoppingCart.ShoppingCartVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    /**
     * 根据user表中的id查询shoppingCart表中的数据
     * @param userName
     * @return
     */
    public List<ShoppingCartVo> findAllShoppingCart(String userName);

    /**
     * 增加shoppingcart表中的一条数据
     * @param shoppingCartVo
     * @return
     */
    public int addShoppingCart(ShoppingCartVo shoppingCartVo);

    /**
     * 删除shoppingcart表中的一条数据
     * @param shoppingCartIdVo
     * @return
     */
    public int deleteShoppingCart(ShoppingCartIdVo shoppingCartIdVo);
}
